package com.example.cassandra_demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 注意Spring Boot自动配置的时候发现没有配置数据库会报：
 * "Failed to configure a DataSource: 'url' attribute is not specified and no embedde"
 *
 *  因此加入 exclude = DataSourceAutoConfiguration.class 不让其自动配置数据库
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class CassandraDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(CassandraDemoApplication.class, args);
    }

}

